<div ng-include="'html/shared/_baseheader.html'">
</div>
<div id="wrapper" class="bg_f" style="top:0px;">
	<div id="scroller">
		<section id="nofocus">
			<div class="p_bg1">
				<div class="heiclass"></div>
				<div>
					<div class="header_box" activeclass="nobgm" ng-click="go('back');$event.stopPropagation();">
						<span ng-bind="ProductInfo.productName.length >= 16 ?  (ProductInfo.productName | limitTo:15)+'....':ProductInfo.productName"></span>
						<i class="header_icon h_i_left"></i>
					</div>
				</div>
				<div class="puoduct_center text_center">
					<div class="puoduct_shadow">
						<p class="p_p0">预期年化率</p>
						<p class="p_t16">
							<span ng-bind="(ProductInfo.annualRateOfYear - ProductInfo.showRate)| number:'1'"></span><span>%</span><span ng-if="ProductInfo.showRate">+</span><span ng-if="ProductInfo.showRate" ng-bind="ProductInfo.showRate| number:'1'"></span><span ng-if="ProductInfo.showRate">%</span>
						</p>
						<div class="clearfix p_price">
							<div class="pull-left p_divdatailleft">
								<p>起投额度</p>
								<p class="p_info"><span class="n_fa p_cor1" ng-bind="ProductInfo.minBuyPrice | number "></span>元</p>
							</div>
							<p class="pull-left p_line"></p>
							<div class="pull-left p_divdatailcenter">
								<p>项目期限</p>
								<p class="p_info">
									<span class="n_fa p_cor1" ng-bind="ProductInfo.loanPeriod">3</span>{{ProductInfo.loanPeriodUnitId == 2 ? '天' : '个月'}}
								</p>
							</div>
							<p class="pull-left p_line"></p>
							<div class="pull-left p_divdatailleft">
								<p>还款方式</p>
								<p class="p_info1" ng-bind="ProductInfo.repaymentTypeName"></p>
							</div>
						</div>
						
					</div>
				</div>
				<div class="p_progress">
					<div class="clearfix">
						<div class="maxline pull-left">
							<p class="product_line"><span class="lineColor"></span></p>
						</div>
					</div>
					<div class="clearfix puoduct_priceall p_p1">
						<p class="pull-left"> <span>总金额：</span><span ng-bind="ProductInfo.loanPrice"></span>元</p>
						<p class="pull-right"><span>剩余金额：</span><span ng-bind="(ProductInfo.loanPrice - ProductInfo.currentTotalPrice < 0 ? 0 : ProductInfo.loanPrice - ProductInfo.currentTotalPrice)"></span>元</p>
					</div>
					
				</div>
			</div>
			<div class="p_content">
				<div class="clearfix p_c_tit p_c_scrolltop" id="js_title">
					<span class="pull-left {{showtype == 1 ? 'p_c_t_span1' : 'p_c_t_span2'}} " ng-click="ShowType(1)" activeclass="nobgm"></span>
					<span class="pull-left {{showtype == 2 ? 'p_c_t_span3' : 'p_c_t_span4'}} " ng-click="ShowType(2)" activeclass="nobgm"></span>
					<span class="pull-left {{showtype == 3 ? 'p_c_t_span5' : 'p_c_t_span6'}} " ng-click="ShowType(3)" activeclass="nobgm"></span>
				</div>
				<!--项目详情-->
				<div class="p_xmxq" ng-show="showtype == 1" id="product_photo_show" style="min-height:{{deviceInfo.height-400}}px;padding-bottom:3rem;">
					<div class="p_x_div" style="margin-top: 0px;">
						<p class="p_x_d_title clearfix">
							<span class="pull-left p_x_dimg p_x_dimg1">项目简介</span></p>
						<div class="p_x_d_con" id="fontSize" style="word-break: break-all;" ng-bind-html="ProductInfo.productDesc | trustHtml">
						</div>
					</div>
					<div class="p_x_div" style="margin-top: 0px;">
						<p class="p_x_d_title clearfix">
							<span class="pull-left p_x_dimg p_x_dimg2">资产展示</span></p>
						<div class="p_x_d_con" id="fontSize" style="word-break: break-all;" ng-bind-html="loanUserInfo.loanBrower | trustHtml">
						</div>
					</div>
					<div class="p_x_div p_x_div1" style="margin-top: 0px;">
						<p class="p_x_d_title clearfix"><span class="pull-left p_x_dimg p_x_dimg3">质押物图片</span></p>
						<div class="p_x_d_con iSlider-effect slider" style="height:{{deviceInfo.width/690*450+ProductInfo.productImages.length*5}}px">
							<div class="p_img slide" ng-repeat="pimage in ProductInfo.productImages">
								<img class="p_x_d_co_img js_layou_photos" src='{{pimage.inputValue}}' vg-src="pimage.inputValue"/>
								<span class="p_x_d_co_img_index text_center" ng-bind="(ProductInfo.productImages.length-$index)+'/'+ProductInfo.productImages.length"></span>
							</div>
						</div>
					</div>
					<p class="bot_tit">温馨提示:市场有风险 投资需谨慎</p>
				</div>
				<!--保障措施-->
				<div class="p_xmxq p_xmxq1" ng-if="showtype == 2" style="padding-bottom:3rem;">
					<p class="p_bzcs_title">资金监管</p>
					<p class="p_bzcs_cont">接入汇付天下资金托管系统，用户资金与平台自有资金物理隔离，保障用户资金安全。</p>
					<p class="p_bzcs_title">分散风险</p>
					<p class="p_bzcs_cont">用户每笔投资均进行小额分散式投资，有效降低投资风险。</p>
					<p class="p_bzcs_title">逾期兑付</p>
					<p class="p_bzcs_cont">如项目还款出现逾期、坏账等情况，合作机构承诺将先行兑付用户投资款及收益。</p>
					<p class="p_bzcs_title">实物抵押</p>
					<p class="p_bzcs_cont">兑付收益后，合作机构将处置项目借款的质押物形成资金闭环。</p>
					<p class="p_bzcs_title">专业风控</p>
					<p class="p_bzcs_cont">专业资深的风控团队用心把关，对还款来源及资金用途做持续追踪。</p>
				</div>
				<!--购买记录-->
				<div class="p_xmxq " ng-if="showtype == 3" style="min-height:{{deviceInfo.width/750*298}}px;padding-bottom:3rem;">
					<ul style="margin-top: 0px;" ng-if="OrderItem && OrderItem.length > 0">
						<!--<li class="clearfix p_gmjl_li{{ OrderItem.length-1 == $index?'_nbb':'' }}" ng-repeat="oi in OrderItem" bindonce>-->
						<li class="clearfix p_gmjl_li" ng-repeat="oi in OrderItem" bindonce>
							<!-- <p class="pull-left p_g_l_i_1 {{oi.terminal == 'android' ? '' : oi.terminal == 'ios' ? 'p_g_l_i_2' :'p_g_l_i_3'}} "></p> -->
							<div class="pull-left">
								<p class="clearfix p_g_l_l">
									<span class="pull-left  p_g_l_l_b n_fa" bo-bind="oi.userName | hideidcard"></span>
								</p>
								<p class="n_fa p_g_l_b"><span bo-bind="oi.paymentTime | date : 'yyyy-MM-dd'"></span> <span bo-bind="oi.paymentTime | date : 'HH:mm:ss'"></span></p>
							</div>
							<p class="pull-right p_gmjl_l_r"><span class="n_fa" ng-bind="oi.orderItemPrice | number ">0.00</span>元</p>
						</li>
					</ul>
					<div style="padding-bottom:2.986667rem;" ng-if="!OrderItem || OrderItem.length == 0 ">
						<img class="tzjl_none" src="../../images/month/tzjl_none.png">
					</div>
				</div>
			</div>
		</section>
	</div>
</div>
<div class="clearfix p_c_tit p_c_fixed" id="js_title">
	<span class="pull-left {{showtype == 1 ? 'p_c_t_span' : ''}} " ng-click="ShowType(1)" activeclass="nobgm">项目简介</span>
	<span class="pull-left {{showtype == 2 ? 'p_c_t_span' : ''}} " ng-click="ShowType(2)" activeclass="nobgm">借款方信息</span>
	<span class="pull-left {{showtype == 3 ? 'p_c_t_span' : ''}} " ng-click="ShowType(3)" activeclass="nobgm">风控措施</span>
	<span class="pull-left {{showtype == 4 ? 'p_c_t_span' : ''}} " ng-click="ShowType(4)" activeclass="nobgm">投资记录</span>
</div>
<!--购买按钮-->
<div class="p_but" ng-if="isshowbutton">
	<!--购买-->
	<div class="clearfix" ng-if="ProductInfo.productStatusId == 3">
		<!--<input class="pull-left p_b_b_input" ng-model="submit.shopprice" id="shopprice" placeholder="{{user?'您可购买'+ProductInfo.minBuyPrice+'~'+(ProductInfo.LoanPrice - ProductInfo.CurrentTotalPrice)+'元':'请输入购买金额'}}"
			type="tel" ng-keyup="GetProfit()" maxlength="" />-->
		<input class="pull-left p_b_b_input" ng-model="submit.shopprice" id="shopprice" placeholder="{{user?'当前可购最大金额为'+(ProductInfo.productGroupId == 1 && ProductInfo.maxBuyPrice < (ProductInfo.loanPrice - ProductInfo.currentTotalPrice) ? ProductInfo.maxBuyPrice : (ProductInfo.loanPrice - ProductInfo.currentTotalPrice))+'元':'请输入购买金额'}}"
		 type="tel" ng-keyup="GetProfit()" maxlength="" />
		<!-- <span class="pull-left p_b_b_m" ng-click="investall()">全投</span> -->
		<span class="pull-left p_b_b_r" activeclass="nobgm" ng-click="investbuy(ProductInfo.id)">立即抢购</span>
		<span class="p_b_b_buy_tan" ng-show="profit">*投资：{{profit.investPrice}}元，预期到期收益：{{profit.investInterest}}元</span>
	</div>
	<!--倒计时-->
	<!-- <div class="p_b_box" ng-if="isdaojishi && ProductInfo.productStatusId == 3">
		<p class="p_b_b_base p_b_b_daojishi">
			<span class="inline_block clearfix">
                <i class="pull-left p_b_b_d_icon"></i>
                <span class="pull-left" ng-bind="(ProductInfo.firstOnlineTime - ServerTime) | ProductDate">00:00:00</span>
			</span>
		</p>
	</div> -->
	<!--已结束-->
	<div class="p_b_box " ng-if="ProductInfo.productStatusId > 5">
		<p class="p_b_b_base p_b_b_jiehsu">已结束</p>
	</div>
	<!--还款中-->
	<div class="p_b_box " ng-if="ProductInfo.productStatusId == 5">
		<p class="p_b_b_base p_b_b_huankuan">还款中</p>
	</div>
	<!--已满标-->
	<div class="p_b_box" ng-if="ProductInfo.productStatusId == 4">
		<p class="p_b_b_base p_b_b_huankuan">已满标</p>
	</div>
</div>
<div ng-bind-html="html| trustHtml"></div>